<template>
	<view class="container">
		<web-view v-if="outlink" :src="outlink"></web-view>
		<view class="no-link">暂不支持的外部连接</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			outlink: ''
		};
	},
	onLoad(option) {
		this.initUrl(option);
	},
	methods: {
		initUrl(option) {
			let url = decodeURIComponent(option.url);
			if (url) {
				this.outlink = url;
			}
		}
	}
};
</script>
<style scoped lang="scss">
.no-link {
	margin-top: 100rpx;
	text-align: center;
	color: $main-text-color-gray-black;
}
</style>
